package com.cw.DesignModel23.Behavioral.StrategyPattern.Strategy1;

public class Main {
    public static void main(String[] args) {
        // 获取促销策略
        PromotionStrategy promotionStrategy = PromotionStrategyFactory.
                getPromotionStrategy(PromotionStrategyFactory.PromotionKey.FANXIAN);
        // 创建促销活动 , 并执行促销策略
        PromotionActivity promotionActivity = new PromotionActivity(promotionStrategy);
        // 执行促销策略
        promotionActivity.executePromotionStrategy();
    }
}

